From 2891f116e798a20ad35ab10e5a3c7f0c51156d81 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Fri, 19 Aug 2022 09:58:14 +0200 Subject: [PATCH] console/client: properly use time_t in get_pty_fd() "int" is not a suitable type to hold time()'s return value. Coverity ID: 1509376 Signed-off-by: Jan Beulich Acked-by: Anthony PERARD --- tools/console/client/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/console/client/main.c b/tools/console/client/main.c index ada6728caa..1a6fa162f7 100644 --- a/tools/console/client/main.c +++ b/tools/console/client/main.c @@ -102,7 +102,7 @@ static int get_pty_fd(struct xs_handle *xs, char *path, int seconds) struct timeval tv; fd_set watch_fdset; int xs_fd = xs_fileno(xs), pty_fd = -1; - int start, now; + time_t start, now; unsigned int len = 0; char *pty_path, **watch_paths; -- 2.30.2